package com.eastfair.matching.api;

import com.eastfair.core.base.R;
import com.eastfair.matching.dto.BindComplementServiceProviderRoleDTO;
import com.eastfair.matching.dto.RemoveComplementServiceProviderRoleDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author dqq
 * @date 2022/8/9
 */
@FeignClient(value = "matching/complementRegister")
public interface ComplementRegisterFeign {

    /**
     * 配套服务商绑定角色.
     *
     * @param bindComplementServiceProviderRoleDTO
     * @return
     */
    @PostMapping("/bind/complementRole")
    R<Boolean> bindComplementServiceProviderRole(@RequestBody BindComplementServiceProviderRoleDTO bindComplementServiceProviderRoleDTO);

    /**
     * 配套服务商移除角色
     *
     * @param removeComplementServiceProviderRoleDTOList
     * @return
     */
    @PostMapping("/remove/complementRole")
    R<Boolean> removeComplementServiceProviderRole(@RequestBody List<RemoveComplementServiceProviderRoleDTO> removeComplementServiceProviderRoleDTOList);
}